<?php
namespace Admin\Model;
use Think\Model\RelationModel;
class GoodsNActivityModel extends RelationModel{
	
	protected $_link = array(        
			'_goods'=>array(            
			'mapping_type'      => self::BELONGS_TO,            
			'class_name'        => 'Goods', 
			'foreign_key'       => 'goodsid', 
			'mapping_fields'    => 'title as gtitle,id as goodsid,number,count,price', 
			'as_fields'         => 'gtitle,number,count,price'
			 ),        
	);

}